import request from '@/utils/request'

// 查询团队赛记录列表
export function listTeamrecord(query) {
  return request({
    url: '/learnmanagement/teamrecord/list',
    method: 'get',
    params: query
  })
}

// 查询团队赛记录详细
export function getTeamrecord(id) {
  return request({
    url: '/learnmanagement/teamrecord/' + id,
    method: 'get'
  })
}

// 新增团队赛记录
export function addTeamrecord(data) {
  return request({
    url: '/learnmanagement/teamrecord', 
    method: 'post',
    data: data
  })
}

// 修改团队赛记录
export function updateTeamrecord(data) {
  return request({
    url: '/learnmanagement/teamrecord',
    method: 'put',
    data: data
  })
}

// 删除团队赛记录
export function delTeamrecord(id) {
  return request({
    url: '/learnmanagement/teamrecord/' + id,
    method: 'delete'
  })
}
